<%@ taglib prefix="t" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/sendMessage.css" />
  </head>
  
  <body>
  <div class="body">
  	<div class="head">
        <nav id="top-nav">
            <form method="GET" name="frmKey" action="search.asp?action=search">

                <div class="wrapper">
                    <div class="inner-wrapper">

                        <div class="search-box bdwm-search-box">

                            <input type="hidden" name="searchtime" value="0">
                            <input type="hidden" name="bbs" value="0">
                            <input type="hidden" name="action" size="20" value="search">

                            <input class="search-ipt" type="text" name="key" placeholder="搜索帖子主题" autocomplete="off">

                            <img onclick="javascript:sss();" src="images/home/iconfont-sousuo.png" class="search-btn">

                            <!--
<img class="search-btn" src="images/home/iconfont-sousuo.png">
<input  type=submit value="搜索" class="button" >-->

                            <ul class="search-result box-shadow keywords-result">
                            </ul>
                            <ul class="search-result box-shadow history-result">
                            </ul>
                        </div>
                        <div class="top-right-links">
                            <a href="">首页</a>
                            <a href="">我的信息</a>
                        </div>
                    </div>
                </div>

            </form>
            <script language="javascript">
                function sss() {
                    frmKey.submit();
                }
            </script>
        </nav>
  	</div>

    <form action="${pageContext.request.contextPath}/message/addMessage">
        <div class="mid-body">


            <div class="messageName">
                <label class="label">标题</label>
                <div class="input-block">
                    <input type="text" name="messageName" placeholder="请输入标题" class="input">
                </div>
            </div>
            <div class="messageContent">
                <div><label class="label">正文内容</label></div>
                <div class="input-block">
                    <textarea name="messageContent" placeholder="请输入内容" class="textarea"></textarea>
                </div>
            </div>
            <div class="item">
                <label class="label">帖子分区</label>
                <div class="input-block" style="width: 350px;font-size:25px;">
                    <select name="moduleName">
                        <t:forEach items="${sessionScope.get('moduleList')}" var="module"  >
                            <option value="${module.moduleName}">${module.moduleName}</option>
                        </t:forEach>
                    </select>
                </div>
            </div>
            <div class="item">
                <div class="input-block" >
                    <button  type="submit" class="button1">立即提交</button>
                    <button type="reset"  class="button2">重置</button>
                </div>
            </div>

        </div>
    </form>
  </div>


  </body>
</html>